mrousavy / colorwaver Goto Github PK
View Code? Open in Web Editor NEW๐จ An app to detect color palettes in the real world - powered by VisionCamera
License: Other
๐จ An app to detect color palettes in the real world - powered by VisionCamera
License: Other
Hi, i just read your comment from this topic: react-native-camera/react-native-camera#2942 (comment).
I think it's really good, I want to make some function like add effects into face while webrtc calling, can u provide some example? Thanks so much
Hi @mrousavy ,
This is truly amazing work!!
I was trying the instructions to run it for my android device, on a windows machine, got the below error:
Was hoping if you too had any similar issue:
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Usersxxxxxvision_camera\Colorwaver\android\app\build.gradle' line: 162
What went wrong:
A problem occurred evaluating project ':app'.
Could not get unknown property 'release' for SigningConfig container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\xxxxx\Colorwaver\android\app\build.gradle' line: 162
What went wrong:
A problem occurred evaluating project ':app'.
Could not get unknown property 'release' for SigningConfig container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
I get this error when trying to compile using the command:
npx react-native run-android --variant=release
In file included from ../../../../src/main/cpp/JSIJNIConversion.cpp:25:
../../../../src/main/cpp/java-bindings/JHashMap.h:16:8: error: redefinition of 'JHashMap'
struct JHashMap : JavaClass<JHashMap<K, V>, JMap<K, V>> {
^
../../../../build/fbjni-0.3.0-headers.jar\fbjni/detail/Iterator.h:170:8: note: previous definition is here
struct JHashMap : JavaClass<JHashMap<K, V>, JMap<K, V>> {
^
1 error generated.
My animated color hook:
export function useAnimatedColor(
color: Reanimated.SharedValue<string>,
): Readonly<Reanimated.SharedValue<string | number>> {
const animation = useSharedValue(0);
const colorFrom = useSharedValue(DEFAULT_COLOR);
const colorTo = useSharedValue(color.value);
useAnimatedReaction(
() => color.value,
(newColor, prevColor) => {
animation.value = 0;
colorFrom.value = prevColor ?? DEFAULT_COLOR;
colorTo.value = newColor;
animation.value = withTiming(1, {
duration: 150,
easing: Easing.linear,
});
console.log(`Animating from ${prevColor} -> ${newColor}`);
},
);
// TODO: Using colorFrom and colorTo in here raises "Attempting to assign to readonly property" error...
return useDerivedValue(() =>
interpolateColor(animation.value, [0, 1], [colorFrom.value, colorTo.value]),
);
}
is causing this error:
See software-mansion/react-native-reanimated#2329 for more details.
Right now, I've hotfixed this by using a custom patch for react-native-reanimated that completely removes the RGB cache. This now runs correctly, but ideally I want to fix this and make use of the cache for performance reasons.
Hi
Is it possible to share PaletteFrameProcessorPlugin as a npm package, please? :)
When enabling Hermes on iOS, ShareableValue::adapt
crashes with the error
Tried to clone a value backed by a different Runtime
This is a SIGABRT and unfortunately really hard to debug. So I have no idea what's causing this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.